<?php

namespace App\Models;

use App\Library\Models\Entity;
use Illuminate\Database\Eloquent\SoftDeletes;

class SalesRecordModel extends Entity
{
    use SoftDeletes;

    protected $table = 'sales_record';

    protected $casts = ['extend' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'type',
        'object_type',
        'object_id',
        'to_user_id',
        'from_user_id',
        'status',
        'ratio',
        'level',
        'amount',
        'remark',
        'invite_flag',
        'extend',
        'created_at',
        'updated_at',
        'deleted_at'
    ];
}
